{extend name="main/index" /}
{block name="main"}
<div class="main-content">
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
        </script>

        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="#">成本管理</a>
            </li>
            <li class="active">项目成本总览</li>
        </ul><!-- .breadcrumb -->

        <div class="nav-search" id="nav-search">
            <form class="form-search">
                <span class="input-icon">
                    <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
                    <i class="icon-search nav-search-icon"></i>
                </span>
            </form>
        </div><!-- #nav-search -->
    </div>

    <div class="page-content">
        <h3 class="header smaller lighter blue">{$project_name}成本总览</h3>
        <div class="row">
            <div class="col-xs-12">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="table-responsive">
                            <table id="sample-table-2" class="table table-striped table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <th>项目</th>
                                        <th>计划成本数据</th>
                                        <th>实际成本数据</th>
                                        <th>月份</th>
                                        <th>成本降低额</th>
                                        <th>成本降低率</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                {volist name="res" key="k" id="v"}
                                    <tr>
                                        <td>{$project_name}</td>
                                        <td>{$v[$arr_plan[$k-1]]}</td>
                                        <td>{$v[$arr[$k-1]]}</td>
                                        <td>{$v['month']}</td>
                                        <td>{$v['derate']}</td>
                                        <td>{$v['rate_cutting']}</td>
                                        <td>

                                            <a href="{:url('admin/user/edit')}">添加</a> | 
                                            <a href="{:url('admin/user/edit')}">修改</a> | 
                                            <a href="">删除</a>
                                        </td>
                                    </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content -->
</div>
{/block}
